-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workaround for issue #3642. #3670
Conversation
For some reason, there are nil values stored in the uidMatrix, which results in a segmentation fault when trying to access the Uids field. The root cause of this issue is still unclear but this change adds an additional check to prevent the segmentation fault.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @martinmr)
query/groupby.go, line 230 at r2 (raw file):
continue } for _, uid := range ul.Uids {
Fix is good. But, I wonder: Can you change this to ul.GetUids() instead? Would the effect be the same?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @manishrjain and @martinmr)
query/groupby.go, line 230 at r2 (raw file):
Previously, manishrjain (Manish R Jain) wrote…
Fix is good. But, I wonder: Can you change this to ul.GetUids() instead? Would the effect be the same?
I think so. This is the definition of GetUids:
func (m *List) GetUids() []uint64 {
if m != nil {
return m.Uids
}
return nil
}
I'll make the change.
For some reason, there are nil values stored in the uidMatrix, which results in a segmentation fault when trying to access the Uids field. The root cause of this issue is still unclear but this change adds an additional check to prevent the segmentation fault.
For some reason, there are nil values stored in the uidMatrix, which
results in a segmentation fault when trying to access the Uids field.
The root cause of this issue is still unclear but this change adds an
additional check to prevent the segmentation fault.
This change is